import request from '@/utils/request'

export async function getAllBrandOptions() {
  const results = await request.post('/admin/goods_brand/list', {
    pageNo: 1,
    pageSize: 200
  })
  if (!results) {
    return []
  }
  return (results.dataList || []).map(el => ({
    value: el.id,
    label: el.brandName
  }))
}
